Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api's regarding the Bug Hunt feature #2428

Merged
merged 7 commits into from
Jul 11, 2024
Merged

Conversation

Uttkarsh-raj
Copy link
Contributor

PR Desc

This pr is regarding the bug hunt api's required for integrating this feature in the ui.

  • search bug hunt by name
  • made changes to the response needed for the frontend
  • one of the fields for the companies was missing so added that too here

This pr fixes #2424 issue.

Routes

  • /api/v1/hunt/ -> to get all the hunts
  • /api/v1/hunt/?search=name - > search the bug hunt by name or with similar names
  • /api/v1/hunt/?activeHunt=true -> get active hunts
  • /api/v1/hunt/?previousHunt=true -> get previous hunts
  • /api/v1/hunt/?upcomingHunt=true -> get upcoming hunts

website/api/views.py Outdated Show resolved Hide resolved
Copy link
Contributor

@arkid15r arkid15r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

website/api/views.py Outdated Show resolved Hide resolved
Co-authored-by: Arkadii Yakovets <2201626+arkid15r@users.noreply.github.com>
@DonnieBLT DonnieBLT merged commit 026fe40 into OWASP-BLT:main Jul 11, 2024
8 checks passed
CodeWithBishal pushed a commit to CodeWithBishal/OWASP-BLT that referenced this pull request Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Api's for the bug hunt feature
3 participants